package com.hoshiicloud.user.service.organization;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.user.entity.organization.PlatOrganization;

import java.util.List;

/**
 * <p>
 * 机构表 服务类
 * </p>
 *
 * @author campchen
 * @since 2019-04-28
 */
public interface PlatOrganizationService extends IService<PlatOrganization>{
    IPage<PlatOrganization> getPage(IPage<PlatOrganization> page, QueryWrapper<PlatOrganization> queryWrapper, String key);

    PlatOrganization getById(Long id);

    PlatOrganization getByOrgcode(String orgcode);

    String insert(PlatOrganization entity);

    boolean updateById(PlatOrganization entity);

    boolean updateById(Long id,Integer status);

    List<PlatOrganization> getByIds(List<Long> ids,String key);

}
